package com.example.tms.bean;

import com.alibaba.fastjson.JSONObject;

/**
 * 返回信息
 */
public class ReturnInfo {

    private String message;
    private String filename;
    private String filepath;
    private Object list;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getFilepath() {
        return filepath;
    }

    public void setFilepath(String filepath) {
        this.filepath = filepath;
    }

    public Object getList() {
        return list;
    }

    public void setList(Object list) {
        this.list = list;
    }

    public static ReturnInfo info1(String message){
        ReturnInfo ri = new ReturnInfo();
        ri.message = message;
        return ri;
    }

    public static ReturnInfo info2(Object list){
        ReturnInfo ri = new ReturnInfo();
        ri.list = list;
        return ri;
    }

    public static ReturnInfo info3(String message, String filename, String filepath){
        ReturnInfo ri = new ReturnInfo();
        ri.message = message;
        ri.filename = filename;
        ri.filepath = filepath;
        return ri;
    }

}
